package com.fundodoo.sfe.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fundodoo.sfe.common.annotation.ExportConfig;

import lombok.Data;

@Entity
@Table(name = "t_dept")
@Data
public class Dept implements Serializable {

	private static final long serialVersionUID = -7790334862410409053L;

	@Id 
	@GeneratedValue(strategy = GenerationType.IDENTITY,generator="")
	@Column(name = "ID")
	@ExportConfig(value = "编号")
	private Long id;

	@Column(name = "PARENT_ID")
	private Long parentId;

	@Column(name = "DEPT_NAME")
	@ExportConfig(value = "用户组名称")
	private String deptName;

	@Column(name = "ORDER_NUM")
	private Long orderNum;

	@Column(name = "CREATE_TIME")
	@ExportConfig(value = "创建时间", convert = "c:com.tpv.vc.common.util.poi.convert.TimeConvert")
	private Date createTime;
	
	@Transient
	private String self = "1";  //  1:Contain self  0:do not contain self

}